package com.wms.wms.mapper;

import com.wms.wms.entity.User;
import org.apache.ibatis.annotations.Mapper;

import java.util.List;

@Mapper
public interface userMapper {
    int deleteByPrimaryKey(String pkUserId);
    int insert(User record);
    int insertSelective(User record);
    User selectByPrimaryKey(String pkUserId);
    int updateByPrimaryKeySelective(User record);
    int updateByPrimaryKey(User record);

    /**
     *
     * 通过用户名与密码查询用户信息
     * @param
     * @return
     */

    public User selectByNameAndPwd(String adminId, String password);
    /*
    返回user的list
     */
    public List<User> selectAll();

}
